package org.example.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.example.pojo.select.DAmountSelect;
import org.example.pojo.select.DStaffRecordSelect;
import org.example.service.DStaffRecordService;
import org.example.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@CrossOrigin(origins = "*")
@RestController
@RequestMapping("staffRecord")
@Tag(name = "房间人员变动记录API",description = "DStaffRecord Controller")
public class DStaffRecordController {

    @Autowired
    private DStaffRecordService dStaffRecordService;

    @Operation(summary = "获取全部房间人员变动记录")
    @PostMapping("/selectAll")
    public Result<Map> selectAll(@RequestBody DStaffRecordSelect dStaffRecordSelect){
        return dStaffRecordService.selectAll(dStaffRecordSelect);
    }

}
